<?php
  include("sr_info.inc");
  $sql = 'select * from user where user.sr_ID='.$_GET['sr_id'].';';
  $result = mysql_query($sql) or die('Query failed: ' . mysql_error());
  mysql_close($link);
?>
<td valign="top" class="style3">
<span  align="center">
  <table align="center" class="style2"  width="550">
    <tr>
      <th>ID</th>
      <th>Name of teacher</th>
      <th>Delete</th>
      <th>Edit</th>
    </tr>
<?php
  while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
    echo "<tr>\n\t<td>";
    echo $line['user_ID'];
    echo "</td>\n<td>";
    echo "<a href=\"show_file.php?user_id=";
    echo $line['user_ID'];
    echo "\">".$line['user_name']."</a>";
    echo "</td><td><a Onclick=\"if(!confirm('Do you want to delete?')) return false;\" href=\"";
    echo $_SERVER['PHP_SELF'].'?sr_id='.$line['sr_ID'].'&user_id='.$line['user_ID'];
    echo "\">delete</a></td><td><a href=\"edit_teacher.php?user_id=";
    echo $line['user_ID'];
    echo "\">edit</a></td>\n</tr>\n";
  }
?>
    <tr>
      <td></td><td></td><td></td><td align="center"><a href="add_teacher.php?sr_id=<?php echo $_GET['sr_id'];?>">Add</a></td>
    </tr>
  </table>
</span>
</td>
</tr>
</table>
<br /><br />
